﻿using DesignMix.Gesture;
using SkiaSharp.Views.Maui.Controls;
using SkiaSharp.Views.Maui.Controls.Hosting;

namespace DesignMix;

public static class AppBuilderExtensions
{
    public static MauiAppBuilder UseGestureRecognizerView(this MauiAppBuilder builder)
    {
        builder.ConfigureMauiHandlers(h =>
        {
            h.AddHandler(typeof(GestureRecognizerView), typeof(GestureRecognizerViewHandler));
        });
        builder.UseSkiaSharp();
        return builder;
    }
}
